package com.example.his.api.mis.service;

import com.example.his.api.common.PageUtils;
import com.example.his.api.db.pojo.RoleEntity;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface RoleService {

  public ArrayList < HashMap > searchAllRole();

  // 查询分页
  public PageUtils searchByPage( Map param );

  // 查询总记录数
  public Long searchCount( Map param );

  // 新增
  public int insert( RoleEntity role );

  // 修改
  public HashMap searchById( int id );

  public ArrayList < Integer > searchUserIdByRoleId( int id );

  public int update( RoleEntity role );

  // 删除
  public boolean searchCanDelete( Integer[] ids );

  public int deleteByIds( Integer[] ids );

}
